package com.ycb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycb.entity.Order;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper extends BaseMapper<Order> {
 

    @Select("SELECT id,name,amt FROM t_order  ")
    List<Order> list();


    @Select("SELECT id,name,amt FROM t_order order by id desc limit 2 ")
    List<Order> listLimit();



}